import React from "react";
export type HiddenWrapper = {
	hidden?: boolean;
	children: React.ReactNode;
};

const HiddenWrapper: React.FC<HiddenWrapper> = props => {
	return <>{props?.hidden && props.children}</>;
};

export default HiddenWrapper;
